package md.NJavaBase;

import android.util.Log;
import android.view.Gravity;
import android.widget.FrameLayout;

import md.NJavaBase.Banner;

public class BannerLogic {
    public static void go()
    {
        FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT,FrameLayout.LayoutParams.WRAP_CONTENT);
        layoutParams.gravity= Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL;
        //layoutParams.topMargin = 650;

        g_Banner = new Banner(layoutParams);
    }

    public static boolean show(int channel)
    {
        Log.d("BannerLogic","show#1");
        return g_Banner.show(channel);
    }

    public static void hide()
    {
        g_Banner.hide();
    }

    static Banner g_Banner;
}
